Repository navigation
[GLB-153, GLB-240, GLB-242, GLB-265] fix(record): 기록 상세 scrollIndex·오류 처리·1개 화면 핀치 수정 - #372
Merged
Merged
Conversation
…B-242) - getDiariesByUuid가 ApiError를 일반 Error로 바꿔 서버 페이지에서 401·5xx를 구분할 수 없었음 - 북마크 조회·저장 취소 실패 시 HTTP 상태와 응답 본문이 화면 문구에 붙었음
…B-153, GLB-240, GLB-242) - scrollIndex가 기록 수보다 크거나 숫자가 아니면 헤더까지 없는 빈 화면이 됐음
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
📝작업 내용
GLB-153 (
app/record/[id]/page.tsx)scrollIndex를 0 ~ (기록 수 - 1) 범위로 맞춥니다. 정수가 아니면(abc등) 0으로 처리합니다.scrollIndex=99,scrollIndex=abc로 들어오면currentRecord가 없어 헤더까지 그리지 않았습니다.GLB-242 (
services/diaryService.ts,app/record/[id]/page.tsx)getDiariesByUuid가ApiError를 일반Error로 바꾸지 않고 그대로 던집니다. 같은 파일의getDiaryDetail등과 같은 방식입니다.handleServerError를 부릅니다. 401은/error?type=401로, 5xx·408은/error?type=500으로 갑니다.handleServerError가 없는 다른 서버 페이지는 이 PR에서 그대로 뒀습니다.nation-select,record/edit/select: 실패해도 빈 목록으로 보여주는 구조입니다.globe/[id]/layout: 메타데이터 생성이라 실패하면 기본 문구를 씁니다.GLB-240
error.message) 대신 고정 문구 "여행 기록을 불러오는 데 실패했습니다. 잠시 후 다시 시도해주세요."로 바꿨습니다. GLB-242로 이제ApiError원문이 올라오기 때문에 함께 필요합니다.bookmarkService의 저장된 지구본 조회·저장 취소 실패 시,…실패했습니다: ${error.message}처럼 붙던 원문을 빼고 고정 문구만 던집니다. 이 문구를 읽어 분기하는 호출부는 없는 것을 확인했습니다.ErrorBoundary는 develop에서 이미error.message를 쓰지 않습니다. 기록 삭제 실패 문구도 서비스가 이미 고정 문구를 던집니다.GLB-265 (
components/record/RecordDetailClient.tsx)RecordCard를touchAction: "pan-y"요소로 감쌌습니다. 기록이 여러 개일 때RecordScrollContainer가 주는 값과 같습니다.확인
turbo run typecheck lint:check test, prettier: 통과scrollIndex=99/abc로 들어갔을 때 첫 기록이 보이는지💬리뷰 요구사항(선택)
/record,/profile등)와 같은 동작입니다.@coderabbitai ignore
🤖 Generated with Claude Code